//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project:			None
//
// Module Name:		CTopViewImageControl.h
//
// Environment:		Windows XX, Visual C++
//
// Description:		Create control to view any type of Images on Top of window
//
// Title End
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	History:
//		2013.05.25	Tran Dang Bao		v01		Create New
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#ifndef _CTopViewImageControl_H_
#define _CTopViewImageControl_H_
//#include "..\stdafx.h"
#include "cviewimagecontrol.h"
#include "CBoardCell.h"

class CTopViewImageControl : public CViewImageControl
{
	DECLARE_DYNAMIC(CTopViewImageControl)
	ULONG_PTR m_gdiplusToken; // GDI+ propertive

private:
	RECT CalTopViewImageControl( RECT rect );
	RECT CalButtonLeftWidth( RECT rect );
	RECT CalButtonRightWidth( RECT rect );
	CBoardCell *m_pCellButtonLeft;
	CBoardCell *m_pCellButtonRight;
	void DrawButtonLeft( Graphics* graphics,  RECT rect );
public:
	CTopViewImageControl(void);
	~CTopViewImageControl(void);
	BOOL CreateViewImageControl(int nWidthControl,	// width of control
								int nHeightControl,	// height of control
								int nNumOfImage,		// number of image
								RECT rect,				// rectangle of parent control
								CWnd* pParentWnd );
	
public:
	 // Event handler
    afx_msg void OnPaint();
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

	DECLARE_MESSAGE_MAP()
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
};
#endif

//#pragma once
//#ifndef CBoardGame2D_H
//#define CBoardGame2D_H
//
//
//class CBoardGame2D : public CBoardGame
//{
//	DECLARE_DYNAMIC(CBoardGame2D)
//
//	 ULONG_PTR m_gdiplusToken; // GDI+ propertive
//	 int m_nCurrentCellID;				// no current Cell 
//public:
//	CBoardGame2D(void);
//
//	~CBoardGame2D(void);
//public:
//	
////	BOOL DrawBoard2D(const RECT& rect, CWnd* pParentWnd );
//	BOOL CreateBoard2D(int nRow, int nColumn, const RECT& rect, CWnd* pParentWnd );
//	virtual BOOL CreateBoard3D(int nRow, int nColumn, const RECT& rect, CWnd* pParentWnd ) {return true;};
//private:
//	// Draw board 2D
//	void DrawBoard2D(Graphics*graphic);
//	void DrawTitle(Graphics* graphics,const CRect &MemRect);
//	// Create main rect
//	void CreateMainRect(CRect* rect);
//
//	 // Event handler
//    afx_msg void OnPaint();
//    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//	afx_msg void OnMouseMove( UINT, CPoint );
//
//	CEvaluateColor m_evaluateColor;
//public:
//	 DECLARE_MESSAGE_MAP()
//};
//
//#endif